//
//  YJCFootView.m
//  xiangzhe
//
//  Created by lyt on 16/11/10.
//  Copyright © 2016年 com.dazhebao. All rights reserved.
//

#import "YJCFootView.h"

@implementation YJCFootView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.imageV = [[UIImageView alloc] init];
        [self addSubview:self.imageV];
        
        self.lableL = [[UILabel alloc] init];
        self.lableL.textColor = [UIColor whiteColor];
        self.lableL.font = [UIFont systemFontOfSize:15];
        self.lableL.textAlignment = NSTextAlignmentCenter;
        [self addSubview:self.lableL];
        
    }
    return self;
}

- (void)layoutSubviews{
    
    [self.imageV mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self).offset(10);
        make.centerY.equalTo(self.mas_centerY);
    }];
    
    
    [self.lableL
     mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.imageV.mas_right).offset(10);
        make.centerY.equalTo(self.mas_centerY);
    }];
    
}
@end
